
{% extends "base.html" %}
{% load i18n %}

{% block content %}
<html>
<head>
<script src="{{STATIC_URL}}jquery.min.js" type="text/javascript"></script>

		<script type="text/javascript" src="{{STATIC_URL}}swfobject.js">
	var flashvars = {};
			var params = {};
			var attributes = {};
			attributes.id = "myId";
			swfobject.embedSWF({{lecture.lectureFile}}, "myAlternativeContent", "800", "600", "9.0.0", false, flashvars, params, attributes);
</script>
<script type="text/javascript">
function showPopup(url) {
newwindow=window.open(url,'name','height=300,width=530,top=200,left=300,resizable');
if (window.focus) {newwindow.focus()}
}
$(function(){
  $('#forgot-password').click(function(){
     $('#recover-password').slideToggle('slow', function() {
  });});
});

</script>
</head>
<body>
<h1>{{ lecture.title}}</h1>
{% if lecture.isStarted %}
{% if lecture.isEnded %}
<p><a >  Quizes</a></p>

{% for quiz in quizes %}
<a  href='/quiz/start/{{quiz.id}}' onClick='showPopup(this.href);return(false);'> {{quiz.title}} </a>
<br>
{% endfor %}

{% else %}
<body>
<a href='/quiz/lecture/end/{{lecture.id}}' > End this Lecture</a><br><br>
		<div id="myAlternativeContent">
			<a href="http://www.adobe.com/go/getflashplayer">
				<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
			</a>
		</div>
	<!--
<embed src={{lecture.lectureFile}} type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="500">
</embed>-->
<br>
<p><a href="javascript:void(0);" id="forgot-password" >  Quizes</a></p>

<div id="recover-password" style="display:none;">
{% for quiz in quizes %}
<a  href='/quiz/start/{{quiz.id}}' onClick='showPopup(this.href);return(false);'> {{quiz.title}} </a>
<br>
{% endfor %}
</div>
{% endif %}
{% else %}
<a href='/quiz/lecture/start/{{lecture.id}}' > Start this Lecture</a><br>
<a href='/quiz/{{lecture.id}}/create'> Create Quiz</a>
{% endif %}

</body>
</html>
{% endblock %}
